﻿using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using NHibernate.Expression;
using Castle.ActiveRecord;

namespace Mang24k99.Model.GOLD
{
    [ActiveRecord(Table = "KT_GOLD_PRODUCT_History")]
    public partial class MKtGoldProductHistory : ActiveRecordBase
    {
        public static IList<MKtGoldProductHistory> SelectAll()
        {
            return (IList<MKtGoldProductHistory>)FindAll(typeof(MKtGoldProductHistory));
        }
        public static MKtGoldProductHistory SelectByPrimaryKey(object ID)
        {
            return (MKtGoldProductHistory)FindByPrimaryKey(typeof(MKtGoldProductHistory), ID);
        }
        public static IList<MKtGoldProductHistory> SelectALLByProperty(string property, object value)
        {
            return (IList<MKtGoldProductHistory>)FindAllByProperty(typeof(MKtGoldProductHistory), property, value);
        }
        public static IList<MKtGoldProductHistory> SelectALLSliced(int firstResult, int maxResult, NHibernate.Expression.DetachedCriteria criteria)
        {

            return (IList<MKtGoldProductHistory>)SlicedFindAll(typeof(MKtGoldProductHistory), firstResult, maxResult, criteria);
        }



        /// <summary>
        /// Gets or sets the ID.()
        /// </summary>
        /// <value>The ID.</value>
        [PrimaryKey(PrimaryKeyType.Native, "ID")]
        public int ID
        {
            get
            {
                return _ID;
            }
            set
            {
                _ID = value;
            }
        }


        /// <summary>
        /// Gets or sets the OrgnizeNO.()
        /// </summary>
        /// <value>The OrgnizeNO.</value>
        [Property("ORGNIZE_NO")]
        public int? OrgnizeNO
        {
            get
            {
                return _OrgnizeNO;
            }
            set
            {
                _OrgnizeNO = value;
            }
        }


        /// <summary>
        /// Gets or sets the ColumnNO.()
        /// </summary>
        /// <value>The ColumnNO.</value>
        [Property("COLUMN_NO")]
        public int? ColumnNO
        {
            get
            {
                return _ColumnNO;
            }
            set
            {
                _ColumnNO = value;
            }
        }


        /// <summary>
        /// Gets or sets the ProcductNO.()
        /// </summary>
        /// <value>The ProcductNO.</value>
        [Property("PROCDUCT_NO")]
        public int? ProcductNO
        {
            get
            {
                return _ProcductNO;
            }
            set
            {
                _ProcductNO = value;
            }
        }


        /// <summary>
        /// Gets or sets the ProductName.()
        /// </summary>
        /// <value>The ProductName.</value>
        [Property("PRODUCT_NAME")]
        public string ProductName
        {
            get
            {
                return _ProductName;
            }
            set
            {
                _ProductName = value;
            }
        }


        /// <summary>
        /// Gets or sets the BreedNO.()
        /// </summary>
        /// <value>The BreedNO.</value>
        [Property("BREED_NO")]
        public int? BreedNO
        {
            get
            {
                return _BreedNO;
            }
            set
            {
                _BreedNO = value;
            }
        }


        /// <summary>
        /// Gets or sets the StandardNO.()
        /// </summary>
        /// <value>The StandardNO.</value>
        [Property("STANDARD_NO")]
        public int? StandardNO
        {
            get
            {
                return _StandardNO;
            }
            set
            {
                _StandardNO = value;
            }
        }


        /// <summary>
        /// Gets or sets the MEASUREMENT.()
        /// </summary>
        /// <value>The MEASUREMENT.</value>
        [Property("MEASUREMENT")]
        public int? MEASUREMENT
        {
            get
            {
                return _MEASUREMENT;
            }
            set
            {
                _MEASUREMENT = value;
            }
        }


        /// <summary>
        /// Gets or sets the ProductBelong.()
        /// </summary>
        /// <value>The ProductBelong.</value>
        [Property("PRODUCT_BELONG")]
        public int? ProductBelong
        {
            get
            {
                return _ProductBelong;
            }
            set
            {
                _ProductBelong = value;
            }
        }


        /// <summary>
        /// Gets or sets the PageOrder.()
        /// </summary>
        /// <value>The PageOrder.</value>
        [Property("PAGE_ORDER")]
        public int? PageOrder
        {
            get
            {
                return _PageOrder;
            }
            set
            {
                _PageOrder = value;
            }
        }


        /// <summary>
        /// Gets or sets the MpageOrder.()
        /// </summary>
        /// <value>The MpageOrder.</value>
        [Property("MPAGE_ORDER")]
        public int? MpageOrder
        {
            get
            {
                return _MpageOrder;
            }
            set
            {
                _MpageOrder = value;
            }
        }


        /// <summary>
        /// Gets or sets the CloseShow.()
        /// </summary>
        /// <value>The CloseShow.</value>
        [Property("CLOSE_SHOW")]
        public int? CloseShow
        {
            get
            {
                return _CloseShow;
            }
            set
            {
                _CloseShow = value;
            }
        }
                /// <summary>
        /// 是否首页排序
        /// </summary>
        [Property("IS_MPORDER")]
        public int? Is_Mporder
        {
            get
            {
                return _Is_Mporder;
            }
            set
            {
                _Is_Mporder = value;
            }
        }

        /// <summary>
        /// Gets or sets the IsValidate.()
        /// </summary>
        /// <value>The IsValidate.</value>
        [Property("IS_VALIDATE")]
        public int? IsValidate
        {
            get
            {
                return _IsValidate;
            }
            set
            {
                _IsValidate = value;
            }
        }


        /// <summary>
        /// Gets or sets the InputTime.()
        /// </summary>
        /// <value>The InputTime.</value>
        [Property("INPUT_TIME")]
        public DateTime? InputTime
        {
            get
            {
                return _InputTime;
            }
            set
            {
                _InputTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the ModifyTime.()
        /// </summary>
        /// <value>The ModifyTime.</value>
        [Property("MODIFY_TIME")]
        public DateTime? ModifyTime
        {
            get
            {
                return _ModifyTime;
            }
            set
            {
                _ModifyTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the DeleteTime.()
        /// </summary>
        /// <value>The DeleteTime.</value>
        [Property("DELETE_TIME")]
        public DateTime? DeleteTime
        {
            get
            {
                return _DeleteTime;
            }
            set
            {
                _DeleteTime = value;
            }
        }



        private int _ID;

        private int? _OrgnizeNO;

        private int? _ColumnNO;

        private int? _ProcductNO;

        private string _ProductName;

        private int? _BreedNO;

        private int? _StandardNO;

        private int? _MEASUREMENT;

        private int? _ProductBelong;

        private int? _PageOrder;

        private int? _MpageOrder;

        private int? _CloseShow;
        private int? _Is_Mporder;
        private int? _IsValidate;

        private DateTime? _InputTime;

        private DateTime? _ModifyTime;

        private DateTime? _DeleteTime;


    }
}
